package com.chenfwind.IDao;

import java.util.List;

import com.chenfwind.domain.Trajectory;

public interface TrajectoryMapper {
    int deleteByPrimaryKey(String id);

    int insert(Trajectory record);

    int insertSelective(Trajectory record);

    Trajectory selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(Trajectory record);

    int updateByPrimaryKey(Trajectory record);
    
    Trajectory selectByBookIDAndRank(String bookID);
    
    List<Trajectory> selectByBook(String bookID);
    
    int selectMaxRank(String bookId);
    
    int updateStatusByBookId(String bookId , int status);
    
}